package org.openkoala.demo.facade.impl.assembler;

import org.openkoala.demo.facade.dto.*;
import org.openkoala.demo.core.domain.*;

public class BookAssembler {
	
public static BookDTO  EntityToDto(Book  book){
    	BookDTO result  = new BookDTO();
        result.setId (book.getId());
         result.setName (book.getName());
 	    return result;
	 }
	
	 public static Book  DtoToEntity(BookDTO  bookDTO){
	 	Book result  = new Book();
        result.setId (bookDTO.getId());
         result.setName (bookDTO.getName());
 	  	return result;
	 }

}
